//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop
//---------------------------------------------------------------------------
USEFORM("unCCTVMain.cpp", Frm_CCTVMain);
USEFORM("unCCTVDisplay.cpp", Frm_CCTVDisplay);
USEFORM("unCCTVState.cpp", Frm_CCTVState);
USEFORM("unCCTVConfig.cpp", Frm_CCTVConfig);
USEFORM("unDisplay1.cpp", Frm_Display1);
USEFORM("unDisplay4.cpp", Frm_Display4);
USEFORM("unDisplay9.cpp", Frm_Display9);
USEFORM("unDisplayAll.cpp", Frm_DisplayAll);
USEFORM("unCCTVCtrlHolder.cpp", Frm_CCTVCtrlHolder);
USEFORM("unCCTVOpHolder.cpp", Frm_CCTVOpHolder);
USEFORM("unLogin.cpp", FRM_LOGIN);
USEFORM("unPreeset.cpp", frmPreeset);
//---------------------------------------------------------------------------
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
	try
	{
		Application->Initialize();
		Application->CreateForm(__classid(TFrm_CCTVMain), &Frm_CCTVMain);
         Application->CreateForm(__classid(TFRM_LOGIN), &FRM_LOGIN);
         Application->CreateForm(__classid(TfrmPreeset), &frmPreeset);
         Application->Run();
	}
	catch (Exception &exception)
	{
		Application->ShowException(&exception);
	}
	catch (...)
	{
		try
		{
			throw Exception("");
		}
		catch (Exception &exception)
		{
			Application->ShowException(&exception);
		}
	}
	return 0;
}
//---------------------------------------------------------------------------
